﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace Web.Admin.Page_Template
{
    public partial class List : Evan.WebUI.ManagerPage
    {
        protected string TempPageTitle = "";
        protected string TemplateCategory = "Template";
        protected List<dynamic> Lists = new List<dynamic>();
        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                TemplateCategory = Evan.Common.CommFun.GetQueryString("t");
                if (TemplateCategory.ToLower() == "Template".ToLower())
                {
                    TempPageTitle = "模板";
                }
                if (TemplateCategory.ToLower() == "Component".ToLower())
                {
                    TempPageTitle = "组件";
                }

                Lists = new Evan.DataBase.DbOperat("Template").GetList(string.Format("TemplateCategory='{0}' and States=1", TemplateCategory));

            }
        }
    }
}